/* Author : Putri Andita R
 * 		    091511059
 * Proyek 4*/

/*package jtk.project4.fleet.screen.pmAssociations;

import java.awt.FlowLayout;

import jtk.project4.fleet.field.MainPMAssociationsField;
import jtk.project4.fleet.field.MainScreenPMScheduleSetupField;
import jtk.project4.fleet.field.TabAssociationsField;


import nl.coderight.jazz.form.FormHeader;
import nl.coderight.jazz.form.FormView;
import nl.coderight.jazz.form.control.GroupControl;
import nl.coderight.jazz.form.field.button.PushButton;



public class pmAssociationsView extends FormView{
	private FormHeader formHeader;
	private PushButton helpButton;
	private PushButton closeButton;
	
	@Override
	protected void init() {
		createFields();
		createLayout();		
	}	
	
	
	private void createFields(){
		helpButton = new PushButton("helpAction");
		closeButton = new PushButton("closeAction");
	}
	
	private void createLayout() {
		setHeader(createHeader());
		addField(createForm());
	}
	
	private FormHeader createHeader() {
		formHeader = new FormHeader();
		formHeader.setTitle("pmScheduleSetup.header.form");
		return formHeader;
	}
	
	private GroupControl createForm() {
		GroupControl form = new GroupControl();
		form.addField(new MainPMAssociationsField("MainPMAssociations"));
		//form.addField(new TabAssociationsField("TabAssociations"), NORTH);
		
		
		form.addField(createButtons(), SOUTH);	
		return form;
	}
	
	private GroupControl createButtons() {
		GroupControl buttons = new GroupControl();
		buttons.setLayout(new FlowLayout(FlowLayout.RIGHT));
		buttons.addField(helpButton);
		buttons.addField(closeButton);
		return buttons;
	}
	
	

}
*/

/* Author : Putri Andita R   091511059
 * Proyek 4*/

package jtk.project4.fleet.screen.pmAssociations;

import java.awt.FlowLayout;
import java.util.List;

import jtk.project4.fleet.field.LaborRadioButtonField;
import jtk.project4.fleet.field.LaborTableField;
import jtk.project4.fleet.field.LaborTombolField;
import jtk.project4.fleet.field.PartRadioButtonField;
import jtk.project4.fleet.field.PartTableField;
import jtk.project4.fleet.field.PartTombolField;
import jtk.project4.fleet.field.ProcedureField;
import jtk.project4.fleet.field.TabAssociationsField;


import nl.coderight.jazz.form.FormField;
import nl.coderight.jazz.form.FormHeader;
import nl.coderight.jazz.form.FormLayout;
import nl.coderight.jazz.form.FormView;
import nl.coderight.jazz.form.control.GroupControl;
import nl.coderight.jazz.form.control.TabControl;
import nl.coderight.jazz.form.control.TabItem;
import nl.coderight.jazz.form.field.button.PushButton;

public class pmAssociationsView extends FormView{
	
	/*private TabControl associationsTab;
	private TabItem partAssociationsTab;
	private TabItem laborAssociationsTab;
	private TabItem procedureTab;*/
	
	

	
	@Override
	protected void init() {
		// TODO Auto-generated method stub
		setTitle("header.tabAssociations");
		//createTabFields();		
		createLayout();
	}
	
	private void createLayout() {
		
		//addField(createForm());
	}
	
		
		
	/*private void createTabFields()
	{
		associationsTab = new TabControl();
		partAssociationsTab = new TabItem("PartAssociations");
		laborAssociationsTab = new TabItem("LaborAssociations");
		procedureTab = new TabItem("Procedure");
	}*/
	
	/*private FormField createTabs()
	{
		TabControl form = associationsTab;
		form.addTab(partAssociationsTab, createPartAssociationsTab());
		form.addTab(laborAssociationsTab, createLaborAssociationsTab());
		form.addTab(procedureTab, createProcedureTab());
		return form;
	}*/
	
	
	
	private GroupControl createPartAssociationsTab() {
		GroupControl form = new GroupControl();
		form.setLayout(new FormLayout())	
		.addField(new PartRadioButtonField("PartRadioButton"))
		.addRow()
		.addField(new PartTableField("PartTable"))
		.addRow()
		.addField(new PartTombolField("PartTombolButton"))
		.addRow();
		//.addTab(new TabAssociationsField("TabAssociations"))
		//.addRow();		
		return form;
	}
	
	/*private GroupControl createProcedureTab() {
		GroupControl form = new GroupControl();
		form.setLayout(new FormLayout())
		.addField(new ProcedureField("Procedure"))	
		;		
		return form;
	}
	
	private GroupControl createLaborAssociationsTab() {
		GroupControl form = new GroupControl();
		form.setLayout(new FormLayout())
		.addField(new LaborRadioButtonField("LaborRadioButton"))	
		.addRow()
		.addField(new LaborTableField("LaborTable"))
		.addRow()
		.addField(new LaborTombolField("LaborTombol"));
			
		return form;
	}
	*/
		
			
	
/*private FormField createForm()
{
	GroupControl form = new GroupControl();
	form.addField(createTabs());
	return form;
}*/


/*
private GroupControl createGeneralForm() {
	GroupControl form = new GroupControl();
	form.addField(createGeneralForm(), NORTH);
	return form;
}*/
}
